from openpyxl import load_workbook


class ReadData:

    @staticmethod
    def read_excel(filepath, sheet):
        wb = load_workbook(filename=filepath)
        sw = wb[sheet]
        data = [[sw.cell(row=i, column=j).value for j in range(1, sw.max_column + 1)] for i in range(1, sw.max_row + 1)]
        return data
